#ifndef __MY_EEPROM_H__
#define __MY_EEPROM_H__

#include <avr/io.h>
#include <stdlib.h>


#define DISABLE_INT  0x7F
#define ENABLE_INT	 0x80
#define	V_WHITE_POS			0
#define	V_BLACK_POS			8
#define	V_COMPARE_POS		16
#define	LEFT_ADJUST_POS		24
#define	RIGHT_ADJUST_POS	25
#define DISTANCE_LEFT_POS	26
#define DISTANCE_RIGHT_POS	28


void eeprom_init(void);
void eeprom_writebyte(unsigned int uiAddress, unsigned char data);
void eeprom_writestr(unsigned int uiAddress_start, unsigned char *ucData_buff, unsigned char ucData_len);

unsigned char eeprom_readbyte(unsigned int uiAddress);
void eeprom_readstr(unsigned int uiAddress_start, unsigned char *ucData_buff, unsigned char ucData_len);

#endif
